Skip to main content

Full text of "Offline Mapping with Maps on a Stick"

See other formats


Click to edit 




Offline Mapping 



Click to edit Master subtitle style 



Base layers 

Haili-Tefrain_z5-16_v1 .mbtiles 
.*, World-Ueht_zCH0_v1.mbtlles 



Upload KML 



Or add online KML 




^^ Maps on a Stick: a project of MapBox and DcvelopmentSoed 



©2010 Jy MapBoi|Temnsof Servic 



Base layers 

H.aiti-Terrain_iS-16_v1 jn&tlles 
World-Ught_zO-10_v1 .mttiles 



Upload KML 



Or add online KML 



I 

J 



5p,u 



Mali 



Niger 



TB*f^ 



Burkina Faso 







s — V 



fM 



Kebbi 



:2 

B^rrne-l 



Banu 



Chad Wa<JiHr3 

Sd£hd 



Sudd I 



■..- Swanes 



V 7 C6ted'lvotre 
Liberia <_. 



Bauchi 

N.bvr Nigeria j ^- 

Plateau Adamsfa 

W-W5*^«W?|i -" HOf< 

Togo ^^ faiaba 



Ntrd 



Benirt r 



Ghana 

Ailiiinli 



Ko^ 



Moyen-Chari _^^ 

/l3amiri^i-Bart>!prfln 



CentralAfrican 

Adsmaous ■Ouhiiyi-Pend"^^'^ Befjublk S 

f Ou*a Haut-Mbonfeti 

«>«■'*«*' Mbormu 

Cameroon 1 on*eii*M'PQi.n _^..^ 



, EquatoriaL 

SaoToms ' Gyirieai 

&-Prindpe 



(^MMj-lviMla' 






Congo 



abon > 

HauL-Ogodu 




Republic 




B.w;ri 


~,JA.w/ ''^'™: 




cf the Congo 


Kivu 


-^ Pool / 








Burur 


X-r'T^-'l/ 


Bsndundu 


Kas^^vientd 




:' Kig 


J B«^:«.B. 




Kasa-Ocddentsl 






_^ . — — 










U\K 


I 








U^ 


\^ 


"^ 







^ Maps on a Stick; aproj&ctof MapBoxand E>evelopnneiitSoed 



©2fi10 b; MapBox I Terms of Service^, 



© O O D Maps on a Stick CD n n O 





m 





Mac 



Maps 



TXT 



README.txl 



^ 



Windows 



» 



4 items ^.':= 



^ 



Maps 



CD 



3S.51 CB available O 



2004_Karzai_Vol 
es.kmz 



2009_center&_vi& 
ited NDI.kmz 



n 



Afgtianistan-200 
4-Blan mbtiles 



Afghan islan- ZOO 
4-Perc...i,mbtiles 



l1 



Afgtianistan-ZOO 
5-Fem....mbtile5 



Afgtianistan-ZOO 
S-Vote....mbtiles 



2009. 
Distf 



Afghan 
4 -Vote 



Afgh 
Ethnici 



Afghanistan- Afghanistan- Afgh^ 

HilJsha....mbtjles Hil]sha....inbtJles Landct 




Afghanistan- May- PI 

Partv-A..=mbtiles Aug_Z0...t5.kmz Bribe-i 

( =1 rm J 



Maps on a Stick: Afghan' 



Bass layers 

• Afghanlstan-Grey_zS-11_v1 
(1),mMles 

Afghanlstafi-Sumnier_zS-1 l.vl 
« (l).mtitiles 

Haiti-Terraln_z5-16_v1 .mtKiles 

World-Light,.,zO-tO_v1 .mbtiles 

Data layers 



S abdiLllafi.votes.kml 
D bashardost_votes,kml 
D fraud_tllstrlct.ltnil 
D fraud.provinoe.kml 
O karzal.votes.kml 



Upload KML 



Or add online KML 




1^' Maps on a Stick: a project 3f MapBoxand DovelopmentSeetf 



©2010 17 MapBoxlTefmsof Seivk 



Warning 

Google Earth could not contact the authenticarion server to activate your 
session. 

The application will continue to operate but will only display data available 
locally (in cache). 

For more information, please visit: 

http:/ /earth. aooale.com/support/bin/answer.py?answer=2Q717hl=en 



( Q^ ') 






Maps on a Stick: Afghan' 



Base layers 

Hati-TeiTaln_z5-16_v1 .mtitlles 
• World-Light.zO-tO.Vt.mtitiles 

Upload KML I 



Or add online KML 



^' Maps on a Stick: a project of MapBox and DevelopmentSeed 




@ 2010 ^ HapBox I Tcrrft of Service I 



; n 

; 

; 

m 



if not self .connect ions. ha s^keyC file name 

salf. connections [filename] -- 5qlit«5 
return self , connect ions [filename] _ 



4a class KMZFileCobject3; 

Jinn j^^gnis in the KMZCache system: pro-vide ac 
f __init__C5«lf , filename^: 

""" initializes an internal zipfile obje 
doc.kml is in the root or a higher-yp di 
' is required.""" 

self >zi|» file - zipfile.ZipFileCfilenane!) 
try: 

self .doc root - os.path.s|plitC[n for 
except IndexError: 

raise ExceptionC^doc. kml not found i 
Kf nemfaerCself , filename J: 

""" get a file from a kmz archive, relat 
return self * zip file . read Cos .path . join (84 

63 class KMZCacheCofaject^: 

'" provides a simple interface for connect i 
pf _^init__Cself3: 
self.knzs - O 

if getCself, filename): 
) if not self .kmzs. has_keyCfilename): 

self .knzs [filename] - KMZFileCos.p«.t 
return self .kmz s [filename] 



73 HKip.cache - MapCacVieO 

74 kmz_cache - KMZCacheC) 
75 

76 ## 

77 # LOGIC FOft WEB FUNCTIONS 

78 ## 
75 

aO def maps_dirO: 

ai if DIST — 'mac'; 

I return "../../../. ./JUs" % MAPS_OIR 
■ DIST — 'win': 



</div> 

<div id-'left'> 

<div class-' kml - input '> 

<forBi id- 'kml- file -form' enctype-'mfultipart/form-dat 
<input id** 'kml- file -input' name- 'kml- file' type-'f 
</foriiiei- 

<a id-'knl-url-add' href-"#"> or online kml </a> 
</div> 

<di V cla s s«* ' ope nlay B r s -bio c ksif i t che r ' > 
<div class-'layers base'> 

-^2 class-'layers-title'>Base layer s</h2> 

<div class-' layers-CQntainit'> 
</div> 
</div> 
<div class- 'layers data'> 

<h2 class-'layers-titl€'>Data layers</h2> 

<div class-'layers-CGntent'> 
</div> 
</dlv> 

<div style-'display:none' class-' factory '> 
■*div class-' form-item form-option radio '> 
<span class-' icon '></span> 
<lal3el class-' opt ion ' ></lab el> 
</div> 

<div class-' form-item form-option checkbox's- 
<label class-'option'> 

<input class-' form-checkbox' type-' checkbox' / 
</label> 
</div> 
<div class-' factory layer-tools '> 

<a class-' layer -zoom' href-'#'> ZQom to Layer </a> 
</div> 
|/div| 
</div> <] — .openlayers-blockswitcher — > 
</div> i;]— #left —> 
<div id»'shadow-bottom'></div> 
■*di V id- ' shadow-top ' ></div> 
<div id-' shadow-left '></div> 
<div id- ' ca nva s ' > 

<div id-'map'></div> 



o o o 



CH gdal2mb 



< ► 



D □ 
D □ 



= nn 



i3l^ 



to: 



CD 

— ^ 



denik 


r- 


3enik-5vn 


h 


^rediile 


1^ 


py 


►- 


s 


li- 


>-trLirilc 


|K 


Dudfjles 


^ 


sserver 


^ 




h 


nb 


► 


2...pfeviiew 


r- 


n 


h 


[h 


^ 


n 


►■ 


n. fossil 




jxPlanet 


^ 


k-utils 


► 



^! gdalZtiles.pv 
|<^ generate. pyc 
imi geotiff... 913. tiff 
[jj geotiffs.-.btiies 
IS) geotiffsam pie. tiff 
Q geotiffs...btile5 
Q geotiffs...btile5 
Q gts.mbtiles 
■^: README.md 
■ tmp.png 



Preview: 




n 



Name geot iff sample, tiff 
Kind Tirr im^ge 
Size 19.4 MB on disk 



L 





f 


1. . 




1 of 10 selected, 38.49 GB available 


J 


«r>r> 


Terminal — zsh — 92x7 





'v/Code/python/gdal2mb$ python gdal2tiles.py geotiffsarople.tiff gts.mbtiles — nai!ie="GeoTlFF s 
ample" — descriptlon="NASA Blue earth sample" — overlay -v 
Input Egeotiffsample.tlff ] : 

Driver: GTiff / GeoTIFF 

Size: 3600 x 1800 x 3 

Proj ection : GEOGCS ["WGS 84" , DATUM ["WGS_19B4" , SPHEROID ["WGS 84" , 6378137, 298 . 257223563, AUTHO 






Firefox File Edit View History Bool<marks Tools Window Help 



[Si 'f?^ 



« n o 



Maps on a Stick - Vimperator 




Base layers 

Afghanistan Hillshade (English} 

Afghanistan Hillshade (Dari) 

Afghanistan LandccNm pnglisJi) 

Afghanistan LafidDover (Dan) 

* GeoTlFF sample 

Data layers 

D 2004_Karzai_Vot8s.krTE 

D 2009_Defit9rs_visfted^NDt.kniz 

D 20(B_Fra)ud_by .District ,kmz 

□ 2009_Kareai_VQtes.kmz 

D % Votes Blank or Invalid 2Q04 

D ^ Vbtss to Karzat 2004 

D ?6 \totes by Female Voters 2004 

D % Vcyte Blank or Invalid 2005 

Q W Female Candidaites 2005 

D % Voter Turnout 2005 

Q Afghanistan ahnicily Data 

Q Percantage of 201 Candiaites wto are 
Female 



ll 







-c 



r-»^, -'-'>* 


















:.?^^ 



"VI, 




[1^3 




I (jB" 




9QQ 

<J^i^^■S■ !>tM] <iT»iN 





K 



JilOl 



H^K 



^p_ 



.Mi 









a 
£/ 

IT. 


' 


'^~ 


^^ **— 



\ 



i 



P 



=ZBr 



or 



'^ 


, 




1 


t 


[-.^. : - 




. --t-.-rT?,-. 




■ T. 1 — , 




• --4= — 




! '. 



«•* I-. ■»- i^ 






'"- 


-._ _ ._ 


T 


■■^ 













fS "^ rs 



l"~l Maps 



^ notes. rlf 



1 oF 2 2 selected, 38.46 GB available 'O' 



1^1 



iter&_vi& 
H.kmz 



ltan-200 
li.mbtiies 



2009_Fraud_bv_ 
District.kmz 

Afghanistan-zoo 
4-Vote....mbtile& 



2009_Karzai_Vot 
e5.l<mz 



Afglianistan-ZOO 
5-Blan mbtiies 



|tan-200 Afglianistan- Afglianistan- 

, mbtiies Ethnicit... mbtiies Female. ...mbtiies 



istan- 


Afghanistan- 


Afghanistan- 


.mbtiles 


Landco....m 


btiles 


Landco...,mbtiles 


1- 


■ 




lip 


y- 


Paid- 




Paid- 


.t&.kmz 


Bribe-Z...m 


btiles 


Bribe-2... liles.zip 



n 



[ Styles '*' ] [=^ ^- ^ T=] [ Spacing ^ ] [ Lists 



-+ — I — I — I — F^ — I — I — F^ — ' — ' — F^ — I — I — F^ — ' — ' — F^ — I — I — F^ — I — I — F^ — ■ — ■ — F^ — ■ — ■ — r^ 
lo ll \2 I3 I4 



gts.mbtiJes 



Monday, September 27, 2009: Edited flte.rribtNes 




notes.rtf 



y^i>''^ 



^ 



What are the real problems in the field 

Click to edit Master subtitle style 



y|school_mdp.mxd - ArcMap - A re Info 





n 


^ 



D ^ 



B ^ La 
B 



Zoom Data 

Zoom Lai^out 
Bookmarks 



Joolbarsj 
B [^ Status Bar 

,_, Overflow Annotation 
B B = 

B 



HI Scrollbars 

^ Rulers 
[+ Guides 
Grid 



Displa^J [Source I Selection | 



File Edit View Insert Selection lools Window Help 

(+) [•" Data View 
H Layout View 



I k o 



XY 



f a ll@ 



^ 1^ 



S [ij] S 9\25Z _^ 



<r^ 



* 



1:73,438 



3 i£ #^n ^? 



=ixj 



irfp Data Frame Properties, , , 



Drawing ^ 



It (^ # D - A - 



^ Main Menu 

3D Analyst 

Advanced Editing 

Animation 

Annotation 

ArcPad 

ArcScan 

COGO 

Data Frame Tools 

Dimensioning 

Distributed Geodatabase 
^ Draw 

Editor 

Effects 

Export to KML 

GPS 



:=1nllL3«1 



m^ 


iU 


^", 




!• 


M 


^ 


^^L 


\ 


jU^ 


w 


\ 


■^ 



^ 



iJ 



z\ l^o _lJ b z u 



A - ^ - ,^ - 



122^44'26,85"W 38^18'56.64"N 



ps on a Stick: Afghanistan 



Base kayers 

Haiti-Terral n„z5- 1 6_v'i .mbtl les 
• World- Ll9ht_zO- 1; O.vt .mbti les 
Data layers 

H D abdulla^_votes.Kml 
H D bashardost votes, km! 

'raud_distrlct.kml 
H D fraud_jjrovlnoe.kml 
H D karzai_votes.kml 

Upload KML ' 



turkmenistan 



Or add online KML 




^ Maps on a Stick; a project of MapBox ar*d DevelopmentSoed 



Afghanistan Landoover (Dan] 
• GeoTIFF sample 
[>ataTayiers 



u. 



O 2004_Karzai_Votes,kme 

D 2009_cefiters_vislted_NDI'.loTE 

D 2009„Fraud_by .District. kmz 

D 2Dt)9_Karza!_Votes.kmz 

l3 Pakistan GeoTIFF 

Q % Vales Blank or [nvalid 2004 

n % \totes to Karzai 2004 

Q % Votes by Female VolefB 2Q(M 

D %Vbte Blank or Invalid 2005 

O 9€ Female Candidates 2005 

D %\ftJter Turnout 200B 

Q Afghanistan Ethnichty Data 

Q Percentage of 201 Candiales who are 

Q Percantege of Wotesi Jirga Candidates 
Wiliated with a Party 

D MaY-'Aiu^2010_SecurityJricidents.kmz A 

Q % pef Province Paid Bribe rz 





Thanks 

mapbox.com 
@mapbox 
@developmentseed 
github.com/developmentseed